package com.wjboot.realty.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wjboot.common.base.ZeusBaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;

import java.time.LocalDateTime;


/**
 * 房产类型
 *
 * @author Wangjing
 * @date 2023-03-13 10:37:24
 */

@Data
@TableName("realty_type")
@NoArgsConstructor
@ToString(callSuper = true)
@SuperBuilder(toBuilder = true)
@EqualsAndHashCode(callSuper = true)
public class RealtyType extends ZeusBaseModel<Integer> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Integer id;

    /**
     * 类型名称
     */
    private String name;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * createTime
     */
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * updateTime
     */
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    /**
     * createBy
     */
    private Integer createBy;

    /**
     * updateBy
     */
    private Integer updateBy;

    /**
     * delFlag
     */
    private Integer delFlag;

}
